<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Taskflow Handbook</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="https://taskflow.github.io/">Taskflow</a>
   &#160;<span id="projectnumber">3.0.0-Master-Branch</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('release-2-7-0.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Release 2.7.0 (2020/10/01) </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>Taskflow 2.7.0 is the 9th release in the 2.x line! This release includes several new changes such as CPU-GPU tasking, algorithm collection, enhanced web-based profiler, documentation, and unit tests.</p>
<h1><a class="anchor" id="release-2-7-0_download"></a>
Download</h1>
<p>Taskflow 2.7.0 can be downloaded from <a href="https://github.com/taskflow/taskflow/releases/tag/v2.7.0">here</a>.</p>
<h1><a class="anchor" id="release-2-7-0_new_features"></a>
New Features</h1>
<ul>
<li>added <a class="el" href="classtf_1_1Executor.html#a1e6866c8f1b6a2e932f06d0b4eb032c0" title="runs a given function asynchronously ">tf::Executor::async</a> to support asynchronously calling a function (see <a class="el" href="chapter2.html#C2_Async">Run a Task Asynchronously</a>) <div class="fragment"><div class="line"><a class="codeRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/thread/future.html">std::future&lt;int&gt;</a> fu = executor.async([](){</div><div class="line">  <span class="comment">// do my work</span></div><div class="line">  <span class="keywordflow">return</span> 1;</div><div class="line">});</div><div class="line"></div><div class="line"><span class="comment">// access the result through fu.get() or wait on the executor</span></div><div class="line">executor.wait_for_all();</div><div class="line">assert(fu.wait_for(<a class="codeRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a>(1)) == std::future_status::ready);</div></div><!-- fragment --> </li>
<li>added kernel algorithm, <a class="el" href="classtf_1_1cudaFlow.html#a97c248490dbde983378f757239eaed4a" title="applies a callable to each dereferenced element of the data array ">tf::cudaFlow::for_each</a> <div class="fragment"><div class="line">taskflow.emplace([](<a class="code" href="classtf_1_1cudaFlow.html">tf::cudaFlow</a>&amp; cf){</div><div class="line">  <span class="comment">// ... gpu tasks</span></div><div class="line">  <span class="comment">// assigns one to every element in my_gpu_data (type int*, 1000 elements)</span></div><div class="line">  cf.<a class="code" href="classtf_1_1cudaFlow.html#a97c248490dbde983378f757239eaed4a">for_each</a>(my_gpu_data, my_gpu_data + 1000, [] __device__ (<span class="keywordtype">int</span>&amp; item) {</div><div class="line">    item = 1;</div><div class="line">  }); </div><div class="line">});</div></div><!-- fragment --> </li>
<li>added kernel algorithm, <a class="el" href="classtf_1_1cudaFlow.html#ab5a7c12e383be4972844a9f29033e487" title="applies a callable to each index in the range with the step size ">tf::cudaFlow::for_each_index</a> <div class="fragment"><div class="line">taskflow.emplace([](<a class="code" href="classtf_1_1cudaFlow.html">tf::cudaFlow</a>&amp; cf){</div><div class="line">  <span class="comment">// ... gpu tasks</span></div><div class="line">  <span class="comment">// assigns one to every element in my_gpu_data (type int*, 1000 elements)</span></div><div class="line">  cf.<a class="code" href="classtf_1_1cudaFlow.html#ab5a7c12e383be4972844a9f29033e487">for_each_index</a>(0, 100, 1, [my_gpu_data] __device__ (<span class="keywordtype">int</span> idx) {</div><div class="line">    my_gpu_data[idx] = 1;</div><div class="line">  }); </div><div class="line">});</div></div><!-- fragment --> </li>
<li>added explicit join method at <a class="el" href="classtf_1_1cudaFlow.html#afa479a33e555179c400ba2376b7c5f29" title="offloads the cudaFlow and executes it once, and then joins the execution ">tf::cudaFlow::join</a>, <a class="el" href="classtf_1_1cudaFlow.html#a9b28ad99e4d3c0208422a2db094df277" title="offloads the cudaFlow and executes it by the given times, and then joins the execution ...">tf::cudaFlow::join_n</a>, <a class="el" href="classtf_1_1cudaFlow.html#aea77b710bf74fb3ccc6043592d4cdbc7" title="offloads the cudaFlow with the given stop predicate and then joins the execution ">tf::cudaFlow::join_until</a></li>
</ul>
<h1><a class="anchor" id="release-2-7-0_bug_fixes"></a>
Bug Fixes</h1>
<p>There are no bug fixes in this release.</p>
<h1><a class="anchor" id="release-2-7-0_deprecated_items"></a>
Deprecated Items</h1>
<ul>
<li>removed redundant methods, tf::Taskflow::broadcast, tf::Taskflow::precede, tf::Taskflow::succeed </li>
<li>removed tf::cudaFlow::predicate (replaced with <a class="el" href="classtf_1_1cudaFlow.html#aea77b710bf74fb3ccc6043592d4cdbc7" title="offloads the cudaFlow with the given stop predicate and then joins the execution ">tf::cudaFlow::join_until</a>) </li>
<li>removed tf::cudaFlow::stream; the executor automatically determines a local, faster stream</li>
</ul>
<h1><a class="anchor" id="release-2-7-0_miscellaneous_items"></a>
Miscellaneous Items</h1>
<ul>
<li>added <a class="el" href="Contributing.html">Contributing</a> </li>
<li>added <a class="el" href="Governance.html">Governance</a> </li>
<li>added <a class="el" href="release-roadmap.html">Release Roadmap</a> </li>
<li>updated <a class="el" href="FAQ.html">Frequently Asked Questions</a> </li>
<li>improved script through out-of-tree build (thanks to Daniel Jour!) </li>
</ul>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="Releases.html">Releases</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
